<div id="content-left">
<ul id="browser" class="filetree">
<?php
if(isset($lefttype) && $lefttype == 'stock')
{
    echo '<li><span class="folder">Printing</span>';
    echo '<ul>';
    if(isset($_SESSION['group']) && $_SESSION['group'] != 'JU'){
        echo '<li><a href="/inventory/stocklist"><span class="file">In Stock</span></a></li>';
        echo '<li><a href="/inventory/itemlist"><span class="file">Used</span></a></li>';
        echo '<li><a href="/inventory/brokenlist"><span class="file">Broken</span></a></li>';
        if($_SESSION['branch'] == '00HO00'){
            echo '<li><a href="/inventory/getreturn"><span class="file">Returned</span></a></li>';
        }
    }
        echo '<li><a href="/inventory/printReport"><span class="file">Report</span></a></li>';
    echo '</ul>';
    echo '</li>';
}

elseif(isset($lefttype) && $lefttype == 'stationery')
{
    echo '<li><span class="folder">Stationery</span>';
    echo '<ul>';
    if(isset($_SESSION['group']) && $_SESSION['group'] != 'JU'){
        echo '<li><a href="/inventory/stationerylist"><span class="file">In Stock</span></a></li>';
        echo '<li><a href="/inventory/stationeryused"><span class="file">Used</span></a></li>';
        echo '<li><a href="/inventory/stationerybroken"><span class="file">Broken</span></a></li>';
    }
        echo '<li><a href="/inventory/stationeryReport"><span class="file">Report</span></a></li>';
    echo '</ul>';
    echo '</li>';
}

elseif(isset($lefttype) && $lefttype == 'assetFA')
{
    echo '<li><span class="folder">FA</span>';
    echo '<ul>';
    if(isset($_SESSION['group']) && $_SESSION['group'] != 'JU'){
        echo '<li><a href="/inventory/assetlist/3"><span class="file">FA</span></a></li>';
        echo '<li><a href="/inventory/assetused/3"><span class="file">FA Used</span></a></li>';
        echo '<li><a href="/inventory/assetbroken/3"><span class="file">FA Broken</span></a></li>';
    }
        echo '<li><a href="/inventory/assetReport/3"><span class="file">FA Report</span></a></li>';
    echo '</ul>';
    echo '</li>';
}

elseif(isset($lefttype) && $lefttype == 'assetNA')
{
    echo '<li><span class="folder">NA</span>';
    echo '<ul>';
    if(isset($_SESSION['group']) && $_SESSION['group'] != 'JU'){
        echo '<li><a href="/inventory/assetlist/4"><span class="file">NA</span></a></li>';
        echo '<li><a href="/inventory/assetused/4"><span class="file">NA Used</span></a></li>';
        echo '<li><a href="/inventory/assetbroken/4"><span class="file">NA Broken</span></a></li>';
    }
        echo '<li><a href="/inventory/assetReport/4"><span class="file">NA Report</span></a></li>';
    echo '</ul>';
    echo '</li>';
}

elseif(isset($lefttype) && $lefttype == 'itstock')
{
    echo '<li><span class="folder">IT Inventory</span>';
    echo '<ul>';
    if(isset($_SESSION['group']) && $_SESSION['group'] != 'JU'){
        echo '<li><a href="/itstock"><span class="file">In Stock</span></a></li>';
        echo '<li><a href="/itstock/used"><span class="file">Used</span></a></li>';
        echo '<li><a href="/itstock/broken"><span class="file">Broken</span></a></li>';
    }
        //echo '<li><a href="/itstock/printreport"><span class="file">Report</span></a></li>';
        echo '</ul>';
        echo '</li>';
    echo '<ul>';
    echo '</li>';
}
?>
</ul>
</div>